import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/account/login' //登入
import home from '@/components/home/home' //首页
import Operator from '@/components/System/Operator'//操作员
import sys from '@/components/System/sys'//操作员
import project from '@/components/Project/project'//操作员

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/index',
      name: 'home',
      component: home,
      children:[
      	{
            path: '/Operator',
            name: 'Operator',
            component: Operator
        },
        {
            path: '/sys',
            name: 'sys',
            component: sys
        },
        {
            path: '/project',
            name: 'project',
            component: project
        },
      ]
    }
  ]
})
